;Assembler header file for SysLog
;written by DefMod (Dec 31 2005) on Sat Dec 31 14:01:39 2005
;Tom Hughes, tom@compton.nu, 22 Sep 2002

        [       :LNOT: :DEF: SysLog_Hdr
        GBLS    SysLog_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_OS
        GBLS    Get_OS
        ]
        [       :LNOT: :DEF: OS_Hdr
Get_OS                          SETS    "GET oslib/OS.Hdr"
        |
Get_OS                          SETS    ""
        ]
        $Get_OS

;Symbols for SWI's and SWI reason codes
XSysLog_LogMessage              *       &6C880
SysLog_LogMessage               *       &4C880
   ;Entry
   ;  R0 -> name_or_handle (Char)
   ;  R1 -> message (Char)
   ;  R2 = priority (Int)

XSysLog_LogMessageByHandle      *       &6C880
SysLog_LogMessageByHandle       *       &4C880
   ;Entry
   ;  R0 = handle (Bits)
   ;  R1 -> message (Char)
   ;  R2 = priority (Int)

XSysLog_GetLogLevel             *       &6C881
SysLog_GetLogLevel              *       &4C881
   ;Entry
   ;  R0 -> name_or_handle (Char)
   ;Exit
   ;  R0 = priority (Int)

XSysLog_GetLogLevelByHandle     *       &6C881
SysLog_GetLogLevelByHandle      *       &4C881
   ;Entry
   ;  R0 = handle (Bits)
   ;Exit
   ;  R0 = priority (Int)

XSysLog_FlushLog                *       &6C882
SysLog_FlushLog                 *       &4C882
   ;Entry
   ;  R0 -> name_or_handle (Char)

XSysLog_FlushLogByHandle        *       &6C882
SysLog_FlushLogByHandle         *       &4C882
   ;Entry
   ;  R0 = handle (Bits)

XSysLog_SetLogLevel             *       &6C883
SysLog_SetLogLevel              *       &4C883
   ;Entry
   ;  R0 -> name_or_handle (Char)
   ;  R1 = priority (Int)

XSysLog_SetLogLevelByHandle     *       &6C883
SysLog_SetLogLevelByHandle      *       &4C883
   ;Entry
   ;  R0 = handle (Bits)
   ;  R1 = priority (Int)

XSysLog_LogUnstamped            *       &6C884
SysLog_LogUnstamped             *       &4C884
   ;Entry
   ;  R0 -> name_or_handle (Char)
   ;  R1 -> message (Char)
   ;  R2 = priority (Int)

XSysLog_LogUnstampedByHandle    *       &6C884
SysLog_LogUnstampedByHandle     *       &4C884
   ;Entry
   ;  R0 = handle (Bits)
   ;  R1 -> message (Char)
   ;  R2 = priority (Int)

XSysLog_Indent                  *       &6C885
SysLog_Indent                   *       &4C885
   ;Entry
   ;  R0 -> name_or_handle (Char)

XSysLog_IndentByHandle          *       &6C885
SysLog_IndentByHandle           *       &4C885
   ;Entry
   ;  R0 = handle (Bits)

XSysLog_UnIndent                *       &6C886
SysLog_UnIndent                 *       &4C886
   ;Entry
   ;  R0 -> name_or_handle (Char)

XSysLog_UnIndentByHandle        *       &6C886
SysLog_UnIndentByHandle         *       &4C886
   ;Entry
   ;  R0 = handle (Bits)

XSysLog_NoIndent                *       &6C887
SysLog_NoIndent                 *       &4C887
   ;Entry
   ;  R0 -> handle (Char)

XSysLog_NoIndentByHandle        *       &6C887
SysLog_NoIndentByHandle         *       &4C887
   ;Entry
   ;  R0 = handle (Bits)

XSysLog_OpenSessionLog          *       &6C888
SysLog_OpenSessionLog           *       &4C888
   ;Entry
   ;  R0 -> name (Char)
   ;  R1 = priority (Int)
   ;Exit
   ;  R0 -> handle (Char)

XSysLog_OpenSessionLogByHandle  *       &6C888
SysLog_OpenSessionLogByHandle   *       &4C888
   ;Entry
   ;  R0 -> name (Char)
   ;  R1 = priority (Int)
   ;Exit
   ;  R0 = handle (Bits)

XSysLog_CloseSessionLog         *       &6C889
SysLog_CloseSessionLog          *       &4C889
   ;Entry
   ;  R0 -> handle (Char)

XSysLog_CloseSessionLogByHandle *       &6C889
SysLog_CloseSessionLogByHandle  *       &4C889
   ;Entry
   ;  R0 = handle (Bits)

XSysLog_LogData                 *       &6C88A
SysLog_LogData                  *       &4C88A
   ;Entry
   ;  R0 -> name_or_handle (Char)
   ;  R1 = priority (Int)
   ;  R2 -> data (data)
   ;  R3 = data_size (Int)
   ;  R4 -> base_address (data)

XSysLog_LogDataByHandle         *       &6C88A
SysLog_LogDataByHandle          *       &4C88A
   ;Entry
   ;  R0 = handle (Bits)
   ;  R1 = priority (Int)
   ;  R2 -> data (data)
   ;  R3 = data_size (Int)
   ;  R4 -> base_address (data)

XSysLog_ReadErrorMessage        *       &6C88C
SysLog_ReadErrorMessage         *       &4C88C
   ;Entry
   ;  R0 = error_number (Int)
   ;Exit
   ;  R0 -> error_message (Char)

XSysLog_LogComplete             *       &6C88D
SysLog_LogComplete              *       &4C88D
   ;Entry
   ;  R0 -> name_or_handle (Char)

XSysLog_LogCompleteByHandle     *       &6C88D
SysLog_LogCompleteByHandle      *       &4C88D
   ;Entry
   ;  R0 = handle (Bits)

        ]
        END
